const { Controller } = require('egg');
class TransactionconfigController extends Controller {
    async insert() {
        const { ctx } = this;
        const reqData = ctx.request.body;
        const data = await ctx.service.transactionConfig.insert(reqData);
        ctx.body = {
            code: this.config.code.SUCCESS,
            data,
            msg: '插入成功'
        }
    }
    async findAll() {
        const { ctx } = this;
        const data = await ctx.service.transactionConfig.findAll(ctx.query);
        ctx.body = {
            code: this.config.code.SUCCESS,
            data,
            msg: '查询成功'
        }
    }
}

module.exports = TransactionconfigController;
